package com.edward.migration.service;

import java.util.List;

public interface BaseService<T> {

    T selectOne(T entity);

    T selectById(Object id);

    List<T> selectByCondition(T entity);

    List<T> selectListAll();

    Long selectCount(T entity);

    T insert(T entity);

    T insertSelective(T entity);

    int delete(T entity);

    int deleteById(Object id);

    int updateById(T entity);

    List<T> selectAll();

    int updateSelectiveById(T entity);

    List<T> selectByExample(Object example);

    int selectCountByExample(Object example);


}
